package com.xing.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.common.utils.PageUtils;
import com.xing.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xingfuhao
 * @email 2030280200@qq.com
 * @date 2022-08-31 10:41:37
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //查询所有分类以及子分类，以树形结构封装起来
    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> catIdss);

    //修改分类名称冗余问题
    void updateDetail(CategoryEntity category);

    Long[] findCatelogPath(Long catelogId);
}

